package com.example.web.entity;

import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SequenceRegistry {
    private String id;
    
    private String name;
    
    private String prefix;
    
    private Long nextValue;
    
    private Long minValue;
    
    private Long initValue;
    
    private Long maxValue;
    
    private String cycle; // 是否循环：0-否，1-是
    
    private Long step;
    
    private String creator;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    
    private String updater;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    
    private Boolean deleted;
}
